<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Eloquent\Model;

class FishingSite extends Model
{
	use HasDateTimeFormatter;
    use SoftDeletes;

    protected $table = 'fishing_sites';

    public function setCarouselAttribute($carousel)
    {
        if (is_array($carousel))
        {
            $this->attributes['carousel'] = json_encode($carousel);
        }
    }

}
